
#include "App_Message.h"

int main(int argc, char const *argv[])
{
    char *json = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char array_buf[100];
    int len = App_Message_CJSONToArray(json, array_buf, sizeof(array_buf));
    log_debug("从cjson中读取的字符串数组是: %s ,长度是: %d", array_buf, len);
    char *cjson = App_Message_ArrayToCJSON(array_buf, len);
    log_debug("从数组中读取的cjson字符串是: %s", cjson);
    return 0;
}
